package model.posterminal;

import java.util.List;

public class PosterminalModelDAO {

	private final static PosterminalModel model = new PosterminalModel();
	
	public static List<PosterminalModel> getAllPosterminalModel() throws Exception {
		return model.getAllPosterminalModel();
	}
	
	public static PosterminalModel find(Long id) throws Exception {
		for (PosterminalModel posterminalModel : getAllPosterminalModel()) {
			if (posterminalModel.getId() == id) {
				return posterminalModel;
			}
		}
		return null;
	}
	
}
